package com.mk.log.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.mk.base.service.IBaseService;
import com.mk.log.bean.Log;
import com.mk.log.bean.LogRequest;
import org.aspectj.lang.JoinPoint;

import java.util.List;

/**
 * @Author: yq
 * @Description:
 * @Date: Created in 12:00 PM 3/13/18
 */
public interface ILogService extends IBaseService<Log> {

    String initUsername(String username);

    /**
     * 保存日志
     * @param joinPoint
     * @param methodName
     * @param module
     * @param description
     */
    void put(JoinPoint joinPoint, String methodName, String module, String description,Integer level);

    /**
     * 查询分页
     * @param request
     * @param page
     * @return
     */
    Page<Log> page(LogRequest request,Page<Log> page);

    List<Log> findByCols(LogRequest request);
}
